<style>
    .profile-avatar-container {
        position: relative;
        width: 100px;
        margin: 0 auto;
    }

    .profile-avatar-container .profile-user-img {
        width: 100px;
        height: 100px;
    }

    .profile-avatar-container .profile-avatar-text {
        display: none;
    }

    .profile-avatar-container:hover .profile-avatar-text {
        display: block;
        position: absolute;
        height: 100px;
        width: 100px;
        background: #444;
        opacity: .6;
        color: #fff;
        top: 0;
        left: 0;
        line-height: 100px;
        text-align: center;
    }

    .profile-avatar-container button {
        position: absolute;
        top: 0;
        left: 0;
        width: 100px;
        height: 100px;
        opacity: 0;
    }
</style>
<script src="/assets/libs/jquery/dist/jquery.min.js"  type="text/javascript"></script>
<form action="" method="POST" enctype="multipart/form-data" class="form-horizontal form-ajax" id="edit-form" role="form" data-toggle="validator">
<input type="hidden" id="row-path" name="row[path]" value="{$row.path|htmlentities}"/>
{:token()}



    <div class="form-group">
        <label for="c-imagewidth" class="control-label col-xs-12 col-sm-2" style="line-height:100px;">选择图片: </label>
        <div class="col-xs-12 col-sm-8" style="text-align:left;">
                        <div class="profile-avatar-container" style="height:100px; width:560px;  margin:0px;">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
                            <img class=" img-responsive plupload" src="{$row.path|cdnurl|htmlentities}" style="height:100px; max-width:300px;" alt="">
                            <div class="profile-avatar-text">{:__('Click to edit')}</div>
                            <button id="plupload-avatar" class="plupload" data-input-id="row-path"><i class="fa fa-upload"></i> {:__('Upload')}</button>
	</td>
    <td align="left">
推荐尺寸：671 * 230
	</td>
  </tr>
</table>


                        </div>
        </div>
    </div>
	
    <div class="form-group">
        <label for="c-imagewidth" class="control-label col-xs-12 col-sm-2">链接地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="row[linkurl]" value="{$row.linkurl}"  id="c-linkurl" class="form-control" required />
        </div>
    </div>
    <div class="form-group">
        <label for="c-imageheight" class="control-label col-xs-12 col-sm-2">排序:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" name="row[porder]" value="{$row.porder}"  id="c-porder" class="form-control" required />
        </div>
    </div>

    <div class="form-group">
        <label for="c-imageheight" class="control-label col-xs-12 col-sm-2">是否隐藏:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="checkbox" value="1" name="ishide" {if $row.ishide==1}checked="checked"{/if} />
        </div>
    </div>
	
	
    <div class="form-group hide layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
